<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="template.xhtml">

	<ui:define name="corpo">

		<h1>
		Cadastrar Sala de Reunião
	</h1>
	<ol class="breadcrumb">

	</ol>

	<h:form id="form">
		
		<h:dataTable id="salaReuniao" styleClass="table table-hover" value="#{salaReuniaoController.listSalaReuniao}"	var="salaReuniao">
			<h:column>
				<f:facet name="header">Nome</f:facet>
				<h:outputText value="#{salaReuniao.nome}" />
			</h:column>
			<h:column style="width:200px;">
				<f:facet name="header">Editar</f:facet>	
				<h:commandButton styleClass="btn btn-primary" outcome="cadastraSalaReuniao" style="width:100px;" value="editar" />
			</h:column>
			<h:column style="width:200px;">
					<f:facet name="header">Excluir</f:facet>
					<h:commandButton styleClass="btn btn-danger" id="excluir" style="width:100px;" action="#{salaReuniaoController.excluir()}" value="excluir" >
						<f:setPropertyActionListener target="#{salaReuniaoController.salaReuniao}" value="#{salaReuniao}" />
					</h:commandButton>
			</h:column>
			
		</h:dataTable>
	
		
	</h:form>
		

	</ui:define>

</ui:composition>

</html>